package com.browan.background;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class DataManager
{
	private static DataManager manager;

	private Map<String, List<BackgroundData>> map;

	private DataManager()
	{
		map = new HashMap<String, List<BackgroundData>>();

	}

	public static DataManager getInstence()
	{

		if (null == manager)
		{
			manager = new DataManager();
		}

		return manager;
	}

	public List<BackgroundData> get(String key)
	{
		return map.get(key);
	}

	public void put(String key, List<BackgroundData> data)
	{
		map.put(key, data);
	}
}